<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <style type="text/css">
      .ok {color: green}
      .error {color: red}
    </style>
  </head>
  <body>
    <!--
    <a href="/import/21/">21天背单词导入</a><br />
    <a href="/import/shucipiyi/">熟词僻义导入</a><br />
    -->
    <div align="right">
      {% if user %}
      {{ user.nickname() }}<a href="{{ users.create_logout_url(request.url) }}">退出</a>
      {% else %}
      <a href="{{ users.create_login_url(request.url) }}">使用google账户登录</a>
      {% endif %}
    </div>
    <div align="center">
      <h4>李笑来《TOEFL核心词汇21天突破》（共2134个单词）</h4>
      {% if user %}
      <p>你已经背会{{ user_words }}个单词</p>
      {% endif %}
      <p>{{ word.paraphrase }}</p>
      <form action="." method="post">
        请输入上面释义对应的英文单词：<input type="text" name="word" value="" id="input" />
        <input type="submit" value="提交" />
        <input type="hidden" name="expect_word" value="{{ word.word }}" />
        <input type="hidden" name="word_id" value="{{ word.key().id() }}" />
        <script type="text/javascript">document.getElementById("input").focus()</script>
      </form>
      <br />
      {{ flash_container }}
    </div>
  </body>
</html>

